package game.editer.history;

import game.data.EffectData;
import game.data.FrameData;

/**
 * 添加特效
 */
class AddEffect extends HistoryAction {
	public var frameData:FrameData;

	public var effectData:EffectData;

	public function new(frameData:FrameData, effect:EffectData):Void {
		super();
		this.frameData = frameData;
		this.effectData = effect;
	}

	override function undo() {
		super.undo();
		frameData.removeEffect(effectData);
		EditerStage.timeline.updateTimelineData(true);
	}
}
